package com.chinasoft.controlelasticsearch.pojo;

import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "user",type="user")
public class SysUser {
    private Integer id;
    private String username;
    private String telephone;
    private String name;
    private String email;

    public SysUser() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public SysUser(Integer id, String username, String telephone, String name, String email) {
        this.id = id;
        this.username = username;
        this.telephone = telephone;
        this.name = name;
        this.email = email;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", telephone='" + telephone + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
